{% extends 'basic_app/master.html' %}
{% block tag_left %}
    {% include 'basic_app/tag_left_user.html' %}
{% endblock %}
{% block userinfo %}
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <h2 class="page-header">添加主机页</h2>
        <form class="form-horizontal" action="{{ request.path }}" method="post" onsubmit="return validateForm();">
            <div class="form-group">
                <label class="col-sm-2 control-label">名称：</label>
                <div class="col-sm-10">
                    <input type="text" style="width:300px;" class="form-control" name="add_name" placeholder="名称">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">主机名：</label>
                <div class="col-sm-10">
                    <input type="text" style="width:300px;" class="form-control" name="add_hostname" placeholder="主机名">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">Ip：</label>
                <div class="col-sm-10">
                    <input type="text" id="onsubmit_ip" style="width:300px;" class="form-control" name="add_ip"
                           placeholder="Ip">
                </div>
            </div>
                        <div class="form-group">
                <label class="col-sm-2 control-label">port：</label>
                <div class="col-sm-10">
                    <input type="text" id="onsubmit_ip" style="width:300px;" class="form-control" name="add_port"
                           placeholder="port">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">gm_ip：</label>
                <div class="col-sm-10">
                    <input type="text" id="onsubmit_port" style="width:300px;" class="form-control" name="add_gm_ip"
                           placeholder="管理ip">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">other_ip：</label>
                <div class="col-sm-10">
                    <input type="text" style="width:300px;" class="form-control" name="add_other_ip" placeholder="其它ip">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">status：</label>
                <div class="col-sm-10">
                    <input type="text" style="width:300px;" class="form-control" name="add_status"
                           placeholder="状态">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">type：</label>
                <div class="col-sm-10">
                    <input type="text" style="width:300px;" class="form-control" name="add_type" placeholder="主机类型">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">osversion：</label>
                <div class="col-sm-10">
                    <input type="text" style="width:300px;" class="form-control" name="add_osversion" placeholder="操作系统版本">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">place：</label>
                <div class="col-sm-10">
                    <input type="text" style="width:300px;" class="form-control" name="add_place" placeholder="位置">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">remark：</label>
                <div class="col-sm-10">
                    <input type="text" style="width:300px;" class="form-control" name="add_remark" placeholder="备注">
                </div>
            </div>
            <div class="col-sm-10">
                {#                <button type="submit" class="btn ">提交</button>#}
                <div style="text-align:center;vertical-align:middle;"><input type="submit" class="btn" value="提交"></div>
            </div>
        </form>
    </div>
{% endblock %}
